package com.hksj.app.websocket.message;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 订阅接口的消息
 */
@Data
public class RequestMessage implements Serializable {

    @ApiModelProperty(value = "token认证",example = "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJlZjExOTAwNDMwZTY0YTZjOTM5MjUyYTMzY2U2MjI5MCIsInN1YiI6IntcInN1ZmZpeFwiOlwiYmU5MTg0NjkxNGEwNDI0NjgyOWYxNzcwOWJjMWQyYWRcIixcInVzZXJJZFwiOjF9IiwiaXNzIjoic2ciLCJpYXQiOjE3MjE3ODg1NjcsImV4cCI6MTcyMTgxNzM2N30.ctZnc23aXXwN9R9jIk-wrIwD8kzmIEU8_YMa3J3nOBs")
    private String token;

    @ApiModelProperty(value = "消息类型 固定值 subscribe",example = "subscribe")
    private String type;

    @ApiModelProperty(value = "每隔多久推一次消息",example = "10")
    private Integer interval = 10;

    @ApiModelProperty(value = "订阅的接口信息列表")
    private List<Subscription> subscriptionList;
}
